<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{crearVariableCalculada.page1}" id="page1">
            <ui:html binding="#{crearVariableCalculada.html1}" id="html1">
                <ui:head binding="#{crearVariableCalculada.head1}" id="head1">
                    <ui:link binding="#{crearVariableCalculada.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{crearVariableCalculada.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{crearVariableCalculada.form1}" id="form1" virtualFormsConfig="">
                        <ui:staticText binding="#{crearVariableCalculada.titulo}" id="titulo"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 96px; top: 168px; position: absolute" text="Crear  variable calculada"/>
                        <ui:table augmentTitle="false" binding="#{crearVariableCalculada.tablaDeVariables}" clearSortButton="true" id="tablaDeVariables"
                            lite="true" paginateButton="true" paginationControls="true" style="left: 96px; top: 336px; position: absolute; width: 520px"
                            title="Variables" width="520">
                            <script>
function initAllRows() {
  var table = document.getElementById("form1:tablaDeVariables");
  table.initAllRows();
}
</script>
                            <ui:tableRowGroup binding="#{crearVariableCalculada.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                selected="#{crearVariableCalculada.selectedState}"
                                sourceData="#{crearVariableCalculada.sct0001DataProviderParaCrearVariableCalculada}" sourceVar="currentRow">
                                <ui:tableColumn binding="#{crearVariableCalculada.tableColumn1}" headerText="Nombre" id="tableColumn1" sort="SCT0001.NMBREVRBLE">
                                    <ui:hyperlink action="#{crearVariableCalculada.hyperlink1_action}" binding="#{crearVariableCalculada.hyperlink1}"
                                        id="hyperlink1" text="#{currentRow.value['SCT0001.NMBREVRBLE']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{crearVariableCalculada.tableColumn2}" headerText="Codigo" id="tableColumn2" sort="SCT0001.CDGOVRBLE">
                                    <ui:staticText binding="#{crearVariableCalculada.staticText2}" id="staticText2" style="font-size: 10px" text="#{currentRow.value['SCT0001.CDGOVRBLE']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{crearVariableCalculada.tableColumn3}" headerText="Restriccion" id="tableColumn3"
                                    valign="middle" width="50">
                                    <ui:staticText binding="#{crearVariableCalculada.staticText3}" id="staticText3" style="font-size: 10px" text="#{crearVariableCalculada.restriccionesSiNo}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{crearVariableCalculada.tableColumn4}" headerText="Exigible" id="tableColumn4"
                                    valign="middle" width="50">
                                    <ui:staticText binding="#{crearVariableCalculada.staticText4}" id="staticText4" style="font-size: 10px" text="#{crearVariableCalculada.exigibleSiNo}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{crearVariableCalculada.tableColumn5}" headerText="Tipo dato" id="tableColumn5"
                                    sort="SCT0001.TPODTO" valign="middle" width="70">
                                    <ui:staticText binding="#{crearVariableCalculada.staticText5}" id="staticText5" style="font-size: 10px" text="#{crearVariableCalculada.clasesDeTipoDato}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{crearVariableCalculada.tableColumn8}" headerText="Tipo variable" id="tableColumn8"
                                    sort="SCT0001.TPOVRBLE" valign="middle">
                                    <ui:staticText binding="#{crearVariableCalculada.staticText1}" id="staticText1" style="font-size: 10px" text="#{crearVariableCalculada.tipoVariableClase}"/>
                                </ui:tableColumn>
                                <ui:tableColumn align="center" binding="#{crearVariableCalculada.tableColumn7}" id="tableColumn7"
                                    onClick="setTimeout('initAllRows()', 0)" selectId="radioButton1" valign="middle" width="50">
                                    <ui:radioButton binding="#{crearVariableCalculada.radioButton1}" id="radioButton1" label="" name="asdasd"
                                        selected="#{crearVariableCalculada.selected}" selectedValue="#{crearVariableCalculada.selectedValue}"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                            <!-- Actions (Top) -->
                            <f:facet name="actionsTop">
                                <ui:dropDown binding="#{crearVariableCalculada.areaDeSolicitudDropDown}" id="areaDeSolicitudDropDown"
                                    items="#{crearVariableCalculada.sct0020DataProviderParaCrearVariableCalculada.options['SCT0020.CDGOAREASLCTUD,SCT0020.CDGOANDDSCRPCION']}"
                                    label="Area" onChange="common_timeoutSubmitForm(this.form, 'areaDeSolicitudDropDown');" style="font-size: 10px" valueChangeListener="#{crearVariableCalculada.areaDeSolicitudDropDown_processValueChange}"/>
                            </f:facet>
                        </ui:table>
                        <ui:hiddenField binding="#{crearVariableCalculada.primeraCargadaHiddenField}" id="primeraCargadaHiddenField"/>
                        <ui:alert binding="#{crearVariableCalculada.alert1}" id="alert1" style="height: 70px; left: 288px; top: 144px; position: absolute; width: 502px"/>
                        <ui:label binding="#{crearVariableCalculada.operacionLabel}" id="operacionLabel" style="left: 96px; top: 288px; position: absolute" text="Operacion  ="/>
                        <ui:label binding="#{crearVariableCalculada.resultadoLabel}" id="resultadoLabel" style="left: 192px; top: 288px; position: absolute"/>
                        <ui:label binding="#{crearVariableCalculada.codigoLabel}" for="codigoVariableCalcTextField" id="codigoLabel" requiredIndicator="true"
                            style="left: 96px; top: 216px; position: absolute" text="Codigo "/>
                        <ui:textField binding="#{crearVariableCalculada.codigoVariableCalcTextField}" id="codigoVariableCalcTextField" maxLength="20" style="left: 168px; top: 216px; position: absolute; width: 168px"/>
                        <ui:label binding="#{crearVariableCalculada.descripcionLabel}" for="descripcionTextField" id="descripcionLabel" requiredIndicator="true"
                            style="left: 96px; top: 240px; position: absolute" text="Nombre"/>
                        <ui:textField binding="#{crearVariableCalculada.descripcionTextField}" columns="50" id="descripcionTextField" maxLength="100" style="left: 168px; top: 240px; position: absolute; width: 288px"/>
                        <ui:message binding="#{crearVariableCalculada.message1}" for="codigoVariableCalcTextField" id="message1" showDetail="false"
                            showSummary="true" style="left: 360px; top: 216px; position: absolute"/>
                        <ui:message binding="#{crearVariableCalculada.message2}" for="descripcionTextField" id="message2" showDetail="false" showSummary="true" style="left: 480px; top: 240px; position: absolute; width: 286px"/>
                        <ui:dropDown binding="#{crearVariableCalculada.tipoDropDown}" id="tipoDropDown"
                            items="#{crearVariableCalculada.tipoDropDownDefaultOptions.options}" style="font-size: 10px; left: 168px; top: 264px; position: absolute"/>
                        <ui:label binding="#{crearVariableCalculada.tipoLabel}" id="tipoLabel" style="left: 96px; top: 264px; position: absolute" text="Tipo"/>
                        <h:panelGrid binding="#{crearVariableCalculada.gridPanelParaBotonesOpe}" columns="7" id="gridPanelParaBotonesOpe"
                            style="height: 24px; left: 96px; top: 312px; position: absolute" width="528">
                            <ui:button action="#{crearVariableCalculada.botonDeSuma_action}" binding="#{crearVariableCalculada.botonDeSuma}" id="botonDeSuma"
                                mini="true" primary="true" style="" text="+"/>
                            <ui:button action="#{crearVariableCalculada.botonDeResta_action}" binding="#{crearVariableCalculada.botonDeResta}" id="botonDeResta"
                                mini="true" primary="true" style="width: 48px" text="-"/>
                            <ui:button action="#{crearVariableCalculada.botonDeMultiplicar_action}" binding="#{crearVariableCalculada.botonDeMultiplicar}"
                                id="botonDeMultiplicar" mini="true" primary="true" style="width: 47px" text="*"/>
                            <ui:button action="#{crearVariableCalculada.botonDeDividir_action}" binding="#{crearVariableCalculada.botonDeDividir}"
                                id="botonDeDividir" mini="true" primary="true" style="width: 48px" text="/"/>
                            <ui:button action="#{crearVariableCalculada.limpiarBoton_action}" binding="#{crearVariableCalculada.limpiarBoton}" id="limpiarBoton"
                                mini="true" primary="true" style="width: 71px" text="Limpiar"/>
                            <ui:button action="#{crearVariableCalculada.botonCrear_action}" binding="#{crearVariableCalculada.botonCrear}" id="botonCrear"
                                mini="true" primary="true" style="width: 48px" text="Crear"/>
                            <ui:checkbox binding="#{crearVariableCalculada.fechaActualCheckBox}" id="fechaActualCheckBox" label="FECHA ACTUAL" onClick="" style="font-size: 10px; font-weight: bold; width: 120px"/>
                        </h:panelGrid>
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:button action="#{crearVariableCalculada.button1_action}" binding="#{crearVariableCalculada.button1}" id="button1" immediate="true"
                            mini="true" primary="true" style="left: 96px; top: 120px; position: absolute; width: 71px" text="Cerrar"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
